<?php
/**
 * FileName: admin.php
 * Author: Fei.Song @cepcc
 * Date: 2021/2/24 15:03
 * Created by PhpStorm
 * Desc: 后台路由文件
 */

use Illuminate\Support\Facades\Route;


/*//后台登录
Route::get('admin/login',[\App\Http\Controllers\Admin\LoginController::class,'loginShow'])->middleware('adminlogin')->name('admin.loginShow');
Route::post('admin/login',[\App\Http\Controllers\Admin\LoginController::class,'login'])->name('admin.login');
Route::get('admin/change',[\App\Http\Controllers\Admin\LoginController::class,'changeShow'])->middleware('adminlogin')->name('admin.changeShow');
Route::post('admin/change/{id}',[\App\Http\Controllers\Admin\LoginController::class,'change'])->middleware('adminlogin')->name('admin.change');
Route::get('admin/logout',[\App\Http\Controllers\Admin\LoginController::class,'logout'])->name('admin.logout');

//后台页面/操作
Route::name('admin.')->prefix('admin')->middleware(["auth","adminlogin","admininit","routes"])->namespace("\App\Http\Controllers\Admin")->group(function () {
    //后台首页
    Route::name('index')->get('/',"IndexController@index");
});

//平台
Route::name('system.')->prefix('system')->middleware(["auth:system","adminlogin","admininit","routes"])->namespace("\App\Http\Controllers\System")->group(function (){
    //首页
    Route::name('index')->get('/',[\App\Http\Controllers\Admin\IndexController::class,'index']);
});*/
